<%@ include file="/include.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <link type="text/css" rel="stylesheet" href="styles/default.css">
  <script type="text/javascript" language="JavaScript" src="scripts/common.js"></script>
</head>
<body>
	<div class="main" style="width:50%;">
	<form id="MainForm" name="MainForm" action="CIQUserAuthority.do" method="post" >
		<table style="width:100%;">
			<caption>
				CIQ用户权限管理
			</caption>
			<tr><td>
				<table  class="bean">
					<tr class="size">
					  <td width="16%"></td>
					  <td ><span class="errorinfo"><c:if test="${map.user.errorInfo!=null}">${map.user.errorInfo}</c:if><span></td>
					</tr>
					<tr>
					  <td class="formLabel">登录名</td>
					  <td>${map.user.username}</td>
					</tr>
					<tr>
					  <td class="formLabel">权限</td>
					  <td>
					  	<ul>
							<c:forEach items="${map.rights}" var="right">
								<li><input type="checkbox" name="authority" 
									<c:if test='${right.checked}'>checked="checked"</c:if> 
									value="${right.code}">${right.name}</li>
							</c:forEach>
					  	</ul>
					  </td>
					</tr>
				</table>
			</td></tr>
			
			<tr class="button">
			  <td align="center">
			  	<div>
			  		<input type="hidden" value="${map.user.id}" name="id">
			  		<input type="hidden" value="${map.user.version}" name="version">
				    <input type="submit" value=" 提交 " id="submitButton" >
				    <input type="button" value=" 返回 " onClick="window.history.back();">
			  	</div>
			   </td>
			</tr>
		</table>
	</form>
	</div>
</body>
</html>
